package com.subalien.client.util;

public class AppConstants {
	
	public static String DB_URL = "jdbc:mysql://localhost:3306/subalien";
    public static String DB_USER = "root";
    public static String DB_PASSWORD = "root";
    public static int SURFACE_LEVEL = 0;
    public static int MAX_LEVEL = 10;
	
    public static void init() {
        System.out.println("AppConstants.init()");
//        Properties prop = new Properties();

        // Write properties file.
//        try {
//            prop.store(new FileOutputStream("galerija.properties"), null);
//        } catch (IOException e) {
//        }

        // Read properties file.
        // this file need to be placed in Apache Tomcate bin folder
//        try {
//            prop.load(new FileInputStream("subalien.properties"));
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
        
        // database
//        DB_URL = prop.getProperty("DB_URL");
//        System.out.println("DB_URL: " + DB_URL);
//        DB_USER = prop.getProperty("DB_USER");
//        System.out.println("DB_USER: " + DB_USER);
//        DB_PASSWORD = prop.getProperty("DB_PASSWORD");
//        System.out.println("DB_PASSWORD: " + DB_PASSWORD);
    }
}
